export default {
  namespaced: true,
  state: {
    info: null,
    menu: null,
    menuMap: null,
    themes: {}
  },
  mutations: {
    SET_INFO (state, info) {
      state.info = info
    },
    SET_MENU (state, menuData) {
      state.menu = menuData.menuList
      state.menuMap = menuData.menuMap
    },
    SET_THEMES (state, themes) {
      state.themes = themes || {}
      localStorage.setItem('themes', JSON.stringify(themes || {}))
    }
  }
}
